/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.AttributeManager;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "发货通知单",TableName = "ShipmentsModel")]
    public partial class ShipmentsModel:BaseEntity
    {
        /// <summary>
       ///主键Id
       /// </summary>
       [Key]
       [Display(Name ="主键Id")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Id { get; set; }

       /// <summary>
       ///通知单编号
       /// </summary>
       [Display(Name ="通知单编号")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string ShipmentsCode { get; set; }

       /// <summary>
       ///通知单名称
       /// </summary>
       [Display(Name ="通知单名称")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string ShipmentsName { get; set; }

       /// <summary>
       ///销售订单编号
       /// </summary>
       [Display(Name ="销售订单编号")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string SaleCode { get; set; }

       /// <summary>
       ///客户编号
       /// </summary>
       [Display(Name ="客户编号")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string CustCode { get; set; }

       /// <summary>
       ///发货日期
       /// </summary>
       [Display(Name ="发货日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ShipmentsTime { get; set; }

       /// <summary>
       ///收货人
       /// </summary>
       [Display(Name ="收货人")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string ReceivingName { get; set; }

       /// <summary>
       ///联系方式
       /// </summary>
       [Display(Name ="联系方式")]
       [MaxLength(11)]
       [Column(TypeName="nvarchar(11)")]
       [Editable(true)]
       public string Phone { get; set; }

       /// <summary>
       ///收货地址
       /// </summary>
       [Display(Name ="收货地址")]
       [MaxLength(30)]
       [Column(TypeName="nvarchar(30)")]
       [Editable(true)]
       public string ReceivingAddress { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(300)]
       [Column(TypeName="nvarchar(300)")]
       [Editable(true)]
       public string Speak { get; set; }

       /// <summary>
       ///单据状态
       /// </summary>
       [Display(Name ="单据状态")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? State { get; set; }

       
    }
}